﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace 基于WPF的电缆采样数据分析系统.Views.TDRWork
{
    /// <summary>
    /// SaveReferenceWaveformUC.xaml 的交互逻辑
    /// </summary>
    public partial class SaveReferenceWaveformUC : UserControl
    {
        public SaveReferenceWaveformUC()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void R1RBtn_Click(object sender, RoutedEventArgs e)
        {
            R1RBtn.IsChecked = true;
            R2RBtn.IsChecked = false;
            R3RBtn.IsChecked = false;
            R4RBtn.IsChecked = false;
            R5RBtn.IsChecked = false;
            R6RBtn.IsChecked = false;
            R7RBtn.IsChecked = false;
            R8RBtn.IsChecked = false;
        }

        private void R2RBtn_Click(object sender, RoutedEventArgs e)
        {
            R1RBtn.IsChecked = false;
            R2RBtn.IsChecked = true;
            R3RBtn.IsChecked = false;
            R4RBtn.IsChecked = false;
            R5RBtn.IsChecked = false;
            R6RBtn.IsChecked = false;
            R7RBtn.IsChecked = false;
            R8RBtn.IsChecked = false;
        }

        private void R3RBtn_Click(object sender, RoutedEventArgs e)
        {
            R1RBtn.IsChecked = false;
            R2RBtn.IsChecked = false;
            R3RBtn.IsChecked = true;
            R4RBtn.IsChecked = false;
            R5RBtn.IsChecked = false;
            R6RBtn.IsChecked = false;
            R7RBtn.IsChecked = false;
            R8RBtn.IsChecked = false;
        }

        private void R4RBtn_Click(object sender, RoutedEventArgs e)
        {
            R1RBtn.IsChecked = false;
            R2RBtn.IsChecked = false;
            R3RBtn.IsChecked = false;
            R4RBtn.IsChecked = true;
            R5RBtn.IsChecked = false;
            R6RBtn.IsChecked = false;
            R7RBtn.IsChecked = false;
            R8RBtn.IsChecked = false;
        }

        private void R5RBtn_Click(object sender, RoutedEventArgs e)
        {
            R1RBtn.IsChecked = false;
            R2RBtn.IsChecked = false;
            R3RBtn.IsChecked = false;
            R4RBtn.IsChecked = false;
            R5RBtn.IsChecked = true;
            R6RBtn.IsChecked = false;
            R7RBtn.IsChecked = false;
            R8RBtn.IsChecked = false;
        }

        private void R6RBtn_Click(object sender, RoutedEventArgs e)
        {
            R1RBtn.IsChecked = false;
            R2RBtn.IsChecked = false;
            R3RBtn.IsChecked = false;
            R4RBtn.IsChecked = false;
            R5RBtn.IsChecked = false;
            R6RBtn.IsChecked = true;
            R7RBtn.IsChecked = false;
            R8RBtn.IsChecked = false;
        }

        private void R7RBtn_Click(object sender, RoutedEventArgs e)
        {
            R1RBtn.IsChecked = false;
            R2RBtn.IsChecked = false;
            R3RBtn.IsChecked = false;
            R4RBtn.IsChecked = false;
            R5RBtn.IsChecked = false;
            R6RBtn.IsChecked = false;
            R7RBtn.IsChecked = true;
            R8RBtn.IsChecked = false;
        }

        private void R8RBtn_Click(object sender, RoutedEventArgs e)
        {
            R1RBtn.IsChecked = false;
            R2RBtn.IsChecked = false;
            R3RBtn.IsChecked = false;
            R4RBtn.IsChecked = false;
            R5RBtn.IsChecked = false;
            R6RBtn.IsChecked = false;
            R7RBtn.IsChecked = false;
            R8RBtn.IsChecked = true;
        }
    }
}
